package com.example.demo.entity;

import java.util.ArrayList;
import java.util.List;

public class DocumentGroupAuthorityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DocumentGroupAuthorityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDocuUserAuthIdIsNull() {
            addCriterion("DOCU_USER_AUTH_ID is null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdIsNotNull() {
            addCriterion("DOCU_USER_AUTH_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_ID =", value, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdNotEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_ID <>", value, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdGreaterThan(Integer value) {
            addCriterion("DOCU_USER_AUTH_ID >", value, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_ID >=", value, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdLessThan(Integer value) {
            addCriterion("DOCU_USER_AUTH_ID <", value, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdLessThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_ID <=", value, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH_ID in", values, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdNotIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH_ID not in", values, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH_ID between", value1, value2, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH_ID not between", value1, value2, "docuUserAuthId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdIsNull() {
            addCriterion("DOCU_USER_AUTH_USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdIsNotNull() {
            addCriterion("DOCU_USER_AUTH_USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_USER_ID =", value, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdNotEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_USER_ID <>", value, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdGreaterThan(Integer value) {
            addCriterion("DOCU_USER_AUTH_USER_ID >", value, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_USER_ID >=", value, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdLessThan(Integer value) {
            addCriterion("DOCU_USER_AUTH_USER_ID <", value, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_USER_ID <=", value, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH_USER_ID in", values, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdNotIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH_USER_ID not in", values, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH_USER_ID between", value1, value2, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH_USER_ID not between", value1, value2, "docuUserAuthUserId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdIsNull() {
            addCriterion("DOCU_USER_AUTH_DOCU_ID is null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdIsNotNull() {
            addCriterion("DOCU_USER_AUTH_DOCU_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID =", value, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdNotEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID <>", value, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdGreaterThan(Integer value) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID >", value, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID >=", value, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdLessThan(Integer value) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID <", value, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdLessThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID <=", value, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID in", values, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdNotIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID not in", values, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID between", value1, value2, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthDocuIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH_DOCU_ID not between", value1, value2, "docuUserAuthDocuId");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIsNull() {
            addCriterion("DOCU_USER_AUTH is null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIsNotNull() {
            addCriterion("DOCU_USER_AUTH is not null");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH =", value, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthNotEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH <>", value, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthGreaterThan(Integer value) {
            addCriterion("DOCU_USER_AUTH >", value, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthGreaterThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH >=", value, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthLessThan(Integer value) {
            addCriterion("DOCU_USER_AUTH <", value, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthLessThanOrEqualTo(Integer value) {
            addCriterion("DOCU_USER_AUTH <=", value, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH in", values, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthNotIn(List<Integer> values) {
            addCriterion("DOCU_USER_AUTH not in", values, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH between", value1, value2, "docuUserAuth");
            return (Criteria) this;
        }

        public Criteria andDocuUserAuthNotBetween(Integer value1, Integer value2) {
            addCriterion("DOCU_USER_AUTH not between", value1, value2, "docuUserAuth");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}